#pragma once
#if _IOS_

#include "MioLogger.h"
#include "MioPlatform.h"
#include "MioPath.h"

//가변인자 변환
/*
#define FMT_TO_STRING(fmt, ...)	\
const int bufsize = 1024 * 64;	\
char buffer[bufsize];	\
va_list argptr;	\
int ret;	\
va_start(argptr, fmt);	\
ret = sprintf(buffer, fmt, argptr);	\
va_end(argptr);	\
std::string msg(buffer);
*/

namespace mio
{
	class Console_iOS : public Console {
	public:
		void timelog(const std::string &msg) const;
		void timelog(const char *fmt, ...) const;

		void log(const std::string &msg) const;
		void log(const char *fmt, ...) const;
	};

	//path 구현체
	class Path_iOS : public Path {
	public:
		std::string docPath(const std::string &file);
		std::string appPath(const std::string &file);

		bool isFileExist(const std::string &file);
	};
	Path& getPath();
}
#endif
